package com.ruoyi.common.core.constant;

import org.springframework.util.CollectionUtils;

import java.math.BigDecimal;
import java.util.List;

public class CommonUtil {
    public static final String SEPARATOR_MINUS = "-";
    public static final Long GROUP_ID = 247692l;
    public static final String HUALALA_APP_KEY ="2060" ;
    public static final String HUALALA_APP_SECRET = "0RecrzOrNSykYqVP";
    public static final String HUALALA_APP_GROUPID_STRING = "247692";
    public static String TableName_ShopBillDetail="tql_hll_shop_bill";
    public static String TableName_ShopBillFoodDetail="tql_hll_shop_bill_food";
    public static String TableName_ShopBillFoodReportDayDetail="tql_hll_shop_bill_food_reportDay";

    public final static String TQL_STAP_IN_CHANGE = "tql_stap_in_change";
    public final static String TQL_STAP_OUT_CHANGE="tql_stap_out_change";
    public static String Food_Origin_Type_HUALALA="hll";

    public static String TABLE_BILL_FOOD_REPORT="tql_hll_shop_bill_food_reportday";
    public static String TABLE_SHOP_BILL = "tql_hll_shop_bill";
    public static String TABLE_OUT_CHANGE = "tql_stap_out_change";
    public static String TABLE_IN_CHANGE = "tql_stap_in_change";
    public static String TABLE_CASE_ANLASYS = "tql_case_anlasys";

    public static String Enabled_ShopsForHll="enabledShopsForHll";
    public final static int OrgType_COMPANY=0;
    public final static int OrgType_COMPANY_DEPT=1;

    public final static String TABLENAME_TQL_MATARIAL_PURCHASE="tql_material_purchase";
    public final static String TABLENAME_TQL_MATARIAL_INCASE="tql_material_incase";
    public final static String TABLENAME_TQL_KINGDEE_TRANSFER="tql_kingdee_transfer";
    public static BigDecimal zeroBigdecimal=new BigDecimal(0);
    public final static String H5UserPassword="12345";

public final static String yyyyMMdd="yyyyMMdd";
    public static String getStringDepts(List<String> depts) {
        if(CollectionUtils.isEmpty(depts)) return "";
        //   String result = String.join(",", depts);
        String result ="'"+ String.join("','", depts)+"'";
        return result;
    }

}
